<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" lang="zh">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div th:text="${hello}"></div>
[[${hello}]]<br>
<input th:value="${hello}">
<div th:text="${session.Singleton}"></div>
<h1>获取集合中的元素</h1>
<table th:each="arr,index:${list}">
    <td th:text="${arr}">元素值</td>
    <td th:text="${index.index}">元素下标</td>
</table>
<td th:text="('1'=='1')?'第二个':'报错'"></td>
<br>
<td th:if="${hello}=='黄梅戏'" >123456</td>
<br>
<td th:if="${hello}=='黄梅'" >345678io</td>
</body>
</html>